import request from '@/utils/request'

// 查询初始化商品列表
export function listProductInit(query) {
  return request({
    url: '/amz/productInit/list',
    method: 'get',
    params: query
  })
}

// 查询初始化商品详细
export function getProductInit(productInitId) {
  return request({
    url: '/amz/productInit/' + productInitId,
    method: 'get'
  })
}

// 新增初始化商品
export function addProductInit(data) {
  return request({
    url: '/amz/productInit',
    method: 'post',
    data: data
  })
}

// 修改初始化商品
export function updateProductInit(data) {
  return request({
    url: '/amz/productInit',
    method: 'put',
    data: data
  })
}

// 删除初始化商品
export function delProductInit(productInitId) {
  return request({
    url: '/amz/productInit/' + productInitId,
    method: 'delete'
  })
}

// 导出初始化商品
export function exportProductInit(query) {
  return request({
    url: '/amz/productInit/export',
    method: 'get',
    params: query
  })
}
// 是否默认变更事件
export function qcIsDefaultChange(reqDataExport) {
  return request({
    url: '/amz/productInit/qcIsDefaultChange',
    method: 'post',
    data: reqDataExport
  })
}
